YNQ  YNQ-1.6.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
udapi.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Copyright (c) 2021 by Visuality Systems, Ltd.
4  *
5  *************************************************************************
6  * FILE NAME : $Workfile:$
7  * ID : $Header:$
8  * REVISION : $Revision:$
9  *--------------------------------------------------------------------
10  * DESCRIPTION : User define API
11  *--------------------------------------------------------------------
12  * MODULE : NQ
13  * DEPENDENCIES :
14  *************************************************************************/
15 
16 #include <udparams.h>
17 #include <sycompil.h>
18 
19 #ifndef _UDAPI_H_
20 #define _UDAPI_H_
21 
24 /* Primitive data types */
25 
26 typedef char NQ_CHAR;
27 typedef unsigned char NQ_BYTE;
28 typedef int NQ_INT;
29 typedef unsigned int NQ_UINT;
30 typedef int NQ_BOOL;
31 typedef NQ_UINT NQ_INDEX;
32 typedef NQ_UINT NQ_COUNT;
33 typedef short NQ_INT16;
34 #ifdef SY_INT32
35 typedef SY_INT32 NQ_INT32;
36 #else
37 typedef long NQ_INT32;
38 #endif
39 typedef unsigned short NQ_UINT16;
40 #ifdef SY_INT32
41 typedef unsigned SY_INT32 NQ_UINT32;
42 #else
43 typedef unsigned long NQ_UINT32;
44 #endif
46 typedef void *NQ_HANDLE;
47 typedef NQ_INT NQ_STATUS;
51 typedef unsigned long NQ_ULONG;
52 typedef float NQ_FLOAT;
53 
54 /* complex data types */
55 
56 #if defined(CM_NQ_STORAGE) || defined(DOXYGEN)
57 typedef struct {
60  union
61  {
64  } addr;
66 #endif /* CM_NQ_STORAGE */
67 
69 typedef struct {
72 } NQ_UINT64;
73 
75 typedef struct {
79 } NQ_INT64;
80 
82 
83 #define UD_DNS_SERVERSTRINGSIZE (16 * sizeof(NQ_WCHAR) * UD_NQ_MAXDNSSERVERS * UD_NS_MAXADAPTERS)
84 
85 /* IOVEC structures */
86 
87 typedef struct {
90 }NQ_IOVEC;
91 typedef struct {
95 
96 #ifdef UD_NQ_USEIOVECS
97 #define NQ_IOBuf NQ_IOVECBUF*
98 #else
99 #define NQ_IOBuf NQ_BYTE*
100 #endif
101 
102 #if defined(UD_NQ_USEIOVECS) || defined(DOXYGEN)
103 typedef struct
104 {
105  NQ_IOVEC data[3];
108 
118 #define NQ_IOBuffer NQ_IOVecBuffer *
119 #else
120 #define NQ_IOBuffer CMBlob *
121 #endif
122 
123 #if defined(UD_NQ_USEIOVECS) || defined(DOXYGEN)
124 
126 typedef struct {
129 }CMIOVecBlob;
130 
131 #define CMIOBufBlob CMIOVecBlob
132 #else
133 #define CMIOBufBlob CMBlob
134 #endif
135 
138 typedef struct
139 {
141  union
142  {
143 #if defined(UD_NQ_USETRANSPORTIPV6) || defined(DOXYGEN)
145 #endif /* UD_NQ_USETRANSPORTIPV6 */
147 #if defined(CM_NQ_STORAGE) || defined(DOXYGEN)
148 #if defined(UD_NQ_USETRANSPORTIPVR) || defined(DOXYGEN)
150 #endif /* UD_NQ_USETRANSPORTIPVR */
151 #endif /* CM_NQ_STORAGE */
152  } addr;
153 } NQ_IPADDRESS;
154 
155 /* SMB Errors */
156 
162 #define SMB_DOSERR(_class, _code) (((NQ_UINT32)_code << 16) | _class)
163 
164 #define CLASS_ERR_MODULE(_code) ((NQ_UINT32)_code << 16)
165 
166 #ifndef IS_DOS_ERROR
167 #define IS_DOS_ERROR(err) ((err & CLASS_ERR_MODULE(1)) == CLASS_ERR_MODULE(1))
168 #endif
169 
170 #define SMB_ERRsuccess 0x00000000
171 
172 #define DOS_ERRbadfunc SMB_DOSERR(1, 1)
173 #define DOS_ERRbadfile SMB_DOSERR(1, 2)
174 #define DOS_ERRbadpath SMB_DOSERR(1, 3)
175 #define DOS_ERRnofids SMB_DOSERR(1, 4)
176 #define DOS_ERRnoaccess SMB_DOSERR(1, 5)
177 #define DOS_ERRbadfid SMB_DOSERR(1, 6)
178 #define DOS_ERRbadmcb SMB_DOSERR(1, 7)
179 #define DOS_ERRnomem SMB_DOSERR(1, 8)
180 #define DOS_ERRbadmem SMB_DOSERR(1, 9)
181 #define DOS_ERRbadenv SMB_DOSERR(1, 10)
182 #define DOS_ERRbadformat SMB_DOSERR(1, 11)
183 #define DOS_ERRbadaccess SMB_DOSERR(1, 12)
184 #define DOS_ERRbaddata SMB_DOSERR(1, 13)
185 #define DOS_ERRbaddrive SMB_DOSERR(1, 15)
186 #define DOS_ERRremcd SMB_DOSERR(1, 16)
187 #define DOS_ERRdiffdevice SMB_DOSERR(1, 17)
188 #define DOS_ERRnofiles SMB_DOSERR(1, 18)
189 #define DOS_ERRbadshare SMB_DOSERR(1, 32)
190 #define DOS_ERRlock SMB_DOSERR(1, 33)
191 #define DOS_ERRdontsupportipc SMB_DOSERR(1, 66)
192 #define DOS_ERRnoshare SMB_DOSERR(1, 67)
193 #define DOS_ERRfileexists SMB_DOSERR(1, 80)
194 #define DOS_ERRbaddirectory SMB_DOSERR(1, 87)
195 #define DOS_ERRinsufficientbuffer SMB_DOSERR(1, 122)
196 #define DOS_ERRinvalidname SMB_DOSERR(1, 123)
197 #define DOS_ERRdirnotempty SMB_DOSERR(1, 145)
198 #define DOS_ERRalreadyexists SMB_DOSERR(1, 183)
199 #define DOS_ERRbadpipe SMB_DOSERR(1, 230)
200 #define DOS_ERRpipebusy SMB_DOSERR(1, 231)
201 #define DOS_ERRpipeclosing SMB_DOSERR(1, 232)
202 #define DOS_ERRnotconnected SMB_DOSERR(1, 233)
203 #define DOS_ERRmoredata SMB_DOSERR(1, 234)
204 
205 #ifndef IS_SRV_ERROR
206 #define IS_SRV_ERROR(err) ((err & CLASS_ERR_MODULE(2)) == CLASS_ERR_MODULE(2))
207 #endif
208 
209 #define SRV_ERRerror SMB_DOSERR(2, 1)
210 #define SRV_ERRbadpw SMB_DOSERR(2, 2)
211 #define SRV_ERRaccess SMB_DOSERR(2, 4)
212 #define SRV_ERRinvtid SMB_DOSERR(2, 5)
213 #define SRV_ERRinvnetname SMB_DOSERR(2, 6)
214 #define SRV_ERRinvdevice SMB_DOSERR(2, 7)
215 #define SRV_ERRqfull SMB_DOSERR(2, 49)
216 #define SRV_ERRqtoobig SMB_DOSERR(2, 50)
217 #define SRV_ERRqeof SMB_DOSERR(2, 51)
218 #define SRV_ERRinvfid SMB_DOSERR(2, 52)
219 #define SRV_ERRsmbcmd SMB_DOSERR(2, 64)
220 #define SRV_ERRsrverror SMB_DOSERR(2, 65)
221 #define SRV_ERRfilespecs SMB_DOSERR(2, 67)
222 #define SRV_ERRbadpermits SMB_DOSERR(2, 69)
223 #define SRV_ERRsetattrmode SMB_DOSERR(2, 71)
224 #define SRV_ERRpaused SMB_DOSERR(2, 81)
225 #define SRV_ERRmsgoff SMB_DOSERR(2, 82)
226 #define SRV_ERRnoroom SMB_DOSERR(2, 83)
227 #define SRV_ERRrmuns SMB_DOSERR(2, 87)
228 #define SRV_ERRtimeout SMB_DOSERR(2, 88)
229 #define SRV_ERRnoresource SMB_DOSERR(2, 89)
230 #define SRV_ERRtoomanyuids SMB_DOSERR(2, 90)
231 #define SRV_ERRinvuid SMB_DOSERR(2, 91)
232 #define SRV_ERRusempx SMB_DOSERR(2, 250)
233 #define SRV_ERRusestd SMB_DOSERR(2, 251)
234 #define SRV_ERRcontmpx SMB_DOSERR(2, 252)
235 #define SRV_ERRnosupport SMB_DOSERR(2, 65535)
236 
237 #ifndef IS_HRD_ERROR
238 #define IS_HRD_ERROR(err) ((err & CLASS_ERR_MODULE(3)) == CLASS_ERR_MODULE(3))
239 #endif
240 
241 #define HRD_ERRnowrite SMB_DOSERR(3, 19)
242 #define HRD_ERRbadunit SMB_DOSERR(3, 20)
243 #define HRD_ERRnotready SMB_DOSERR(3, 21)
244 #define HRD_ERRbadcmd SMB_DOSERR(3, 22)
245 #define HRD_ERRdata SMB_DOSERR(3, 23)
246 #define HRD_ERRbadreq SMB_DOSERR(3, 24)
247 #define HRD_ERRseek SMB_DOSERR(3, 25)
248 #define HRD_ERRbadmedia SMB_DOSERR(3, 26)
249 #define HRD_ERRbadsector SMB_DOSERR(3, 27)
250 #define HRD_ERRnopaper SMB_DOSERR(3, 28)
251 #define HRD_ERRwrite SMB_DOSERR(3, 29)
252 #define HRD_ERRread SMB_DOSERR(3, 30)
253 #define HRD_ERRgeneral SMB_DOSERR(3, 31)
254 #define HRD_ERRbadshare SMB_DOSERR(3, 32)
255 #define HRD_ERRlock SMB_DOSERR(3, 33)
256 #define HRD_ERRwrongdisk SMB_DOSERR(3, 34)
257 #define HRD_ERRFCBUnavail SMB_DOSERR(3, 35)
258 #define HRD_ERRsharebufexc SMB_DOSERR(3, 36)
259 #define HRD_ERRdiskfull SMB_DOSERR(3, 39)
260 
263 /* SMB Error Codes */
264 
268 #define SMB_STATUS_OK 0xc0000000
269 #define SMB_STATUS_INVALID 0xffffffff
270 
271 #define SMB_STATUS_SUCCESS 0x00000000
272 #define SMB_STATUS_ENUMDIR 0x0000010c
273 #define SMB_STATUS_PENDING 0x00000103
274 #define SMB_STATUS_MORE_ENTRIES 0x00000105
275 #define SMB_STATUS_SOME_UNMAPPED 0x00000107
276 #define SMB_STATUS_NOTIFY_CLEANUP 0x0000010b
277 #define SMB_STATUS_INSUFFICIENT_BUFFER 0x0000007a
278 #define SMB_STATUS_UNKNOWN_PRINTER_DRIVER 0x00000705
279 #define SMB_STATUS_INVALID_DATATYPE 0x0000070c
280 
281 #define SMB_STATUS_BUFFER_OVERFLOW 0x80000005
282 #define SMB_STATUS_NO_MORE_FILES 0x80000006
283 #define SMB_STATUS_DEVICE_OFF_LINE 0x80000010
284 #define SMB_STATUS_NO_MORE_ENTRIES 0x8000001a
285 #define SMB_STATUS_STOPPED_ON_SYMLINK 0x8000002D
286 
287 #define SMB_STATUS_UNSUCCESSFUL 0xc0000001
288 #define SMB_STATUS_NOT_IMPLEMENTED 0xc0000002
289 #define SMB_STATUS_INVALID_INFO_CLASS 0xc0000003
290 #define SMB_STATUS_INFO_LENGTH_MISMATCH 0xc0000004
291 #define SMB_STATUS_ACCESS_VIOLATION 0xc0000005
292 #define SMB_STATUS_IN_PAGE_ERROR 0xc0000006
293 #define SMB_STATUS_PAGEFILE_QUOTA 0xc0000007
294 #define SMB_STATUS_INVALID_HANDLE 0xc0000008
295 #define SMB_STATUS_BAD_INITIAL_STACK 0xc0000009
296 #define SMB_STATUS_BAD_INITIAL_PC 0xc000000a
297 #define SMB_STATUS_INVALID_CID 0xc000000b
298 #define SMB_STATUS_TIMER_NOT_CANCELED 0xc000000c
299 #define SMB_STATUS_INVALID_PARAMETER 0xc000000d
300 #define SMB_STATUS_NO_SUCH_DEVICE 0xc000000e
301 #define SMB_STATUS_NO_SUCH_FILE 0xc000000f
302 #define SMB_STATUS_INVALID_DEVICE_REQUEST 0xc0000010
303 #define SMB_STATUS_END_OF_FILE 0xc0000011
304 #define SMB_STATUS_WRONG_VOLUME 0xc0000012
305 #define SMB_STATUS_NO_MEDIA_IN_DEVICE 0xc0000013
306 #define SMB_STATUS_UNRECOGNIZED_MEDIA 0xc0000014
307 #define SMB_STATUS_NONEXISTENT_SECTOR 0xc0000015
308 #define SMB_STATUS_MORE_PROCESSING_REQUIRED 0xc0000016
309 #define SMB_STATUS_NO_MEMORY 0xc0000017
310 #define SMB_STATUS_CONFLICTING_ADDRESSES 0xc0000018
311 #define SMB_STATUS_NOT_MAPPED_VIEW 0xc0000019
312 #define SMB_STATUS_UNABLE_TO_FREE_VM 0xc000001a
313 #define SMB_STATUS_UNABLE_TO_DELETE_SECTION 0xc000001b
314 #define SMB_STATUS_INVALID_SYSTEM_SERVICE 0xc000001c
315 #define SMB_STATUS_ILLEGAL_INSTRUCTION 0xc000001d
316 #define SMB_STATUS_INVALID_LOCK_SEQUENCE 0xc000001e
317 #define SMB_STATUS_INVALID_VIEW_SIZE 0xc000001f
318 #define SMB_STATUS_INVALID_FILE_FOR_SECTION 0xc0000020
319 #define SMB_STATUS_ALREADY_COMMITTED 0xc0000021
320 #define SMB_STATUS_ACCESS_DENIED 0xc0000022
321 #define SMB_STATUS_BUFFER_TOO_SMALL 0xc0000023
322 #define SMB_STATUS_OBJECT_TYPE_MISMATCH 0xc0000024
323 #define SMB_STATUS_NONCONTINUABLE_EXCEPTION 0xc0000025
324 #define SMB_STATUS_INVALID_DISPOSITION 0xc0000026
325 #define SMB_STATUS_UNWIND 0xc0000027
326 #define SMB_STATUS_BAD_STACK 0xc0000028
327 #define SMB_STATUS_INVALID_UNWIND_TARGET 0xc0000029
328 #define SMB_STATUS_NOT_LOCKED 0xc000002a
329 #define SMB_STATUS_PARITY_ERROR 0xc000002b
330 #define SMB_STATUS_UNABLE_TO_DECOMMIT_VM 0xc000002c
331 #define SMB_STATUS_NOT_COMMITTED 0xc000002d
332 #define SMB_STATUS_INVALID_PORT_ATTRIBUTES 0xc000002e
333 #define SMB_STATUS_PORT_MESSAGE_TOO_LONG 0xc000002f
334 #define SMB_STATUS_INVALID_PARAMETER_MIX 0xc0000030
335 #define SMB_STATUS_INVALID_QUOTA_LOWER 0xc0000031
336 #define SMB_STATUS_DISK_CORRUPT_ERROR 0xc0000032
337 #define SMB_STATUS_OBJECT_NAME_INVALID 0xc0000033
338 #define SMB_STATUS_OBJECT_NAME_NOT_FOUND 0xc0000034
339 #define SMB_STATUS_OBJECT_NAME_COLLISION 0xc0000035
340 #define SMB_STATUS_HANDLE_NOT_WAITABLE 0xc0000036
341 #define SMB_STATUS_PORT_DISCONNECTED 0xc0000037
342 #define SMB_STATUS_DEVICE_ALREADY_ATTACHED 0xc0000038
343 #define SMB_STATUS_OBJECT_PATH_INVALID 0xc0000039
344 #define SMB_STATUS_OBJECT_PATH_NOT_FOUND 0xc000003a
345 #define SMB_STATUS_OBJECT_PATH_SYNTAX_BAD 0xc000003b
346 #define SMB_STATUS_DATA_OVERRUN 0xc000003c
347 #define SMB_STATUS_DATA_LATE_ERROR 0xc000003d
348 #define SMB_STATUS_DATA_ERROR 0xc000003e
349 #define SMB_STATUS_CRC_ERROR 0xc000003f
350 #define SMB_STATUS_SECTION_TOO_BIG 0xc0000040
351 #define SMB_STATUS_PORT_CONNECTION_REFUSED 0xc0000041
352 #define SMB_STATUS_INVALID_PORT_HANDLE 0xc0000042
353 #define SMB_STATUS_SHARING_VIOLATION 0xc0000043
354 #define SMB_STATUS_QUOTA_EXCEEDED 0xc0000044
355 #define SMB_STATUS_INVALID_PAGE_PROTECTION 0xc0000045
356 #define SMB_STATUS_MUTANT_NOT_OWNED 0xc0000046
357 #define SMB_STATUS_SEMAPHORE_LIMIT_EXCEEDED 0xc0000047
358 #define SMB_STATUS_PORT_ALREADY_SET 0xc0000048
359 #define SMB_STATUS_SECTION_NOT_IMAGE 0xc0000049
360 #define SMB_STATUS_SUSPEND_COUNT_EXCEEDED 0xc000004a
361 #define SMB_STATUS_THREAD_IS_TERMINATING 0xc000004b
362 #define SMB_STATUS_BAD_WORKING_SET_LIMIT 0xc000004c
363 #define SMB_STATUS_INCOMPATIBLE_FILE_MAP 0xc000004d
364 #define SMB_STATUS_SECTION_PROTECTION 0xc000004e
365 #define SMB_STATUS_EAS_NOT_SUPPORTED 0xc000004f
366 #define SMB_STATUS_EA_TOO_LARGE 0xc0000050
367 #define SMB_STATUS_NONEXISTENT_EA_ENTRY 0xc0000051
368 #define SMB_STATUS_NO_EAS_ON_FILE 0xc0000052
369 #define SMB_STATUS_EA_CORRUPT_ERROR 0xc0000053
370 #define SMB_STATUS_FILE_LOCK_CONFLICT 0xc0000054
371 #define SMB_STATUS_LOCK_NOT_GRANTED 0xc0000055
372 #define SMB_STATUS_DELETE_PENDING 0xc0000056
373 #define SMB_STATUS_CTL_FILE_NOT_SUPPORTED 0xc0000057
374 #define SMB_STATUS_UNKNOWN_REVISION 0xc0000058
375 #define SMB_STATUS_REVISION_MISMATCH 0xc0000059
376 #define SMB_STATUS_INVALID_OWNER 0xc000005a
377 #define SMB_STATUS_INVALID_PRIMARY_GROUP 0xc000005b
378 #define SMB_STATUS_NO_IMPERSONATION_TOKEN 0xc000005c
379 #define SMB_STATUS_CANT_DISABLE_MANDATORY 0xc000005d
380 #define SMB_STATUS_NO_LOGON_SERVERS 0xc000005e
381 #define SMB_STATUS_NO_SUCH_LOGON_SESSION 0xc000005f
382 #define SMB_STATUS_NO_SUCH_PRIVILEGE 0xc0000060
383 #define SMB_STATUS_PRIVILEGE_NOT_HELD 0xc0000061
384 #define SMB_STATUS_INVALID_ACCOUNT_NAME 0xc0000062
385 #define SMB_STATUS_USER_EXISTS 0xc0000063
386 #define SMB_STATUS_NO_SUCH_USER 0xc0000064
387 #define SMB_STATUS_GROUP_EXISTS 0xc0000065
388 #define SMB_STATUS_NO_SUCH_GROUP 0xc0000066
389 #define SMB_STATUS_MEMBER_IN_GROUP 0xc0000067
390 #define SMB_STATUS_MEMBER_NOT_IN_GROUP 0xc0000068
391 #define SMB_STATUS_LAST_ADMIN 0xc0000069
392 #define SMB_STATUS_WRONG_PASSWORD 0xc000006a
393 #define SMB_STATUS_ILL_FORMED_PASSWORD 0xc000006b
394 #define SMB_STATUS_PASSWORD_RESTRICTION 0xc000006c
395 #define SMB_STATUS_LOGON_FAILURE 0xc000006d
396 #define SMB_STATUS_ACCOUNT_RESTRICTION 0xc000006e
397 #define SMB_STATUS_INVALID_LOGON_HOURS 0xc000006f
398 #define SMB_STATUS_INVALID_WORKSTATION 0xc0000070
399 #define SMB_STATUS_PASSWORD_EXPIRED 0xc0000071
400 #define SMB_STATUS_ACCOUNT_DISABLED 0xc0000072
401 #define SMB_STATUS_NONE_MAPPED 0xc0000073
402 #define SMB_STATUS_TOO_MANY_LUIDS_REQUESTED 0xc0000074
403 #define SMB_STATUS_LUIDS_EXHAUSTED 0xc0000075
404 #define SMB_STATUS_INVALID_SUB_AUTHORITY 0xc0000076
405 #define SMB_STATUS_INVALID_ACL 0xc0000077
406 #define SMB_STATUS_INVALID_SID 0xc0000078
407 #define SMB_STATUS_INVALID_SECURITY_DESCR 0xc0000079
408 #define SMB_STATUS_PROCEDURE_NOT_FOUND 0xc000007a
409 #define SMB_STATUS_INVALID_IMAGE_FORMAT 0xc000007b
410 #define SMB_STATUS_NO_TOKEN 0xc000007c
411 #define SMB_STATUS_BAD_INHERITANCE_ACL 0xc000007d
412 #define SMB_STATUS_RANGE_NOT_LOCKED 0xc000007e
413 #define SMB_STATUS_DISK_FULL 0xc000007f
414 #define SMB_STATUS_SERVER_DISABLED 0xc0000080
415 #define SMB_STATUS_SERVER_NOT_DISABLED 0xc0000081
416 #define SMB_STATUS_TOO_MANY_GUIDS_REQUESTED 0xc0000082
417 #define SMB_STATUS_GUIDS_EXHAUSTED 0xc0000083
418 #define SMB_STATUS_INVALID_ID_AUTHORITY 0xc0000084
419 #define SMB_STATUS_AGENTS_EXHAUSTED 0xc0000085
420 #define SMB_STATUS_INVALID_VOLUME_LABEL 0xc0000086
421 #define SMB_STATUS_SECTION_NOT_EXTENDED 0xc0000087
422 #define SMB_STATUS_NOT_MAPPED_DATA 0xc0000088
423 #define SMB_STATUS_RESOURCE_DATA_NOT_FOUND 0xc0000089
424 #define SMB_STATUS_RESOURCE_TYPE_NOT_FOUND 0xc000008a
425 #define SMB_STATUS_RESOURCE_NAME_NOT_FOUND 0xc000008b
426 #define SMB_STATUS_ARRAY_BOUNDS_EXCEEDED 0xc000008c
427 #define SMB_STATUS_FLOAT_DENORMAL_OPERAND 0xc000008d
428 #define SMB_STATUS_FLOAT_DIVIDE_BY_ZERO 0xc000008e
429 #define SMB_STATUS_FLOAT_INEXACT_RESULT 0xc000008f
430 #define SMB_STATUS_FLOAT_INVALID_OPERATION 0xc0000090
431 #define SMB_STATUS_FLOAT_OVERFLOW 0xc0000091
432 #define SMB_STATUS_FLOAT_STACK_CHECK 0xc0000092
433 #define SMB_STATUS_FLOAT_UNDERFLOW 0xc0000093
434 #define SMB_STATUS_INTEGER_DIVIDE_BY_ZERO 0xc0000094
435 #define SMB_STATUS_INTEGER_OVERFLOW 0xc0000095
436 #define SMB_STATUS_PRIVILEGED_INSTRUCTION 0xc0000096
437 #define SMB_STATUS_TOO_MANY_PAGING_FILES 0xc0000097
438 #define SMB_STATUS_FILE_INVALID 0xc0000098
439 #define SMB_STATUS_ALLOTTED_SPACE_EXCEEDED 0xc0000099
440 #define SMB_STATUS_INSUFFICIENT_RESOURCES 0xc000009a
441 #define SMB_STATUS_DFS_EXIT_PATH_FOUND 0xc000009b
442 #define SMB_STATUS_DEVICE_DATA_ERROR 0xc000009c
443 #define SMB_STATUS_DEVICE_NOT_CONNECTED 0xc000009d
444 #define SMB_STATUS_DEVICE_POWER_FAILURE 0xc000009e
445 #define SMB_STATUS_FREE_VM_NOT_AT_BASE 0xc000009f
446 #define SMB_STATUS_MEMORY_NOT_ALLOCATED 0xc00000a0
447 #define SMB_STATUS_WORKING_SET_QUOTA 0xc00000a1
448 #define SMB_STATUS_MEDIA_WRITE_PROTECTED 0xc00000a2
449 #define SMB_STATUS_DEVICE_NOT_READY 0xc00000a3
450 #define SMB_STATUS_INVALID_GROUP_ATTRIBUTES 0xc00000a4
451 #define SMB_STATUS_BAD_IMPERSONATION_LEVEL 0xc00000a5
452 #define SMB_STATUS_CANT_OPEN_ANONYMOUS 0xc00000a6
453 #define SMB_STATUS_BAD_VALIDATION_CLASS 0xc00000a7
454 #define SMB_STATUS_BAD_TOKEN_TYPE 0xc00000a8
455 #define SMB_STATUS_BAD_MASTER_BOOT_RECORD 0xc00000a9
456 #define SMB_STATUS_INSTRUCTION_MISALIGNMENT 0xc00000aa
457 #define SMB_STATUS_INSTANCE_NOT_AVAILABLE 0xc00000ab
458 #define SMB_STATUS_PIPE_NOT_AVAILABLE 0xc00000ac
459 #define SMB_STATUS_INVALID_PIPE_STATE 0xc00000ad
460 #define SMB_STATUS_PIPE_BUSY 0xc00000ae
461 #define SMB_STATUS_ILLEGAL_FUNCTION 0xc00000af
462 #define SMB_STATUS_PIPE_DISCONNECTED 0xc00000b0
463 #define SMB_STATUS_PIPE_CLOSING 0xc00000b1
464 #define SMB_STATUS_PIPE_CONNECTED 0xc00000b2
465 #define SMB_STATUS_PIPE_LISTENING 0xc00000b3
466 #define SMB_STATUS_INVALID_READ_MODE 0xc00000b4
467 #define SMB_STATUS_IO_TIMEOUT 0xc00000b5
468 #define SMB_STATUS_FILE_FORCED_CLOSED 0xc00000b6
469 #define SMB_STATUS_PROFILING_NOT_STARTED 0xc00000b7
470 #define SMB_STATUS_PROFILING_NOT_STOPPED 0xc00000b8
471 #define SMB_STATUS_COULD_NOT_INTERPRET 0xc00000b9
472 #define SMB_STATUS_FILE_IS_A_DIRECTORY 0xc00000ba
473 #define SMB_STATUS_NOT_SUPPORTED 0xc00000bb
474 #define SMB_STATUS_REMOTE_NOT_LISTENING 0xc00000bc
475 #define SMB_STATUS_DUPLICATE_NAME 0xc00000bd
476 #define SMB_STATUS_BAD_NETWORK_PATH 0xc00000be
477 #define SMB_STATUS_NETWORK_BUSY 0xc00000bf
478 #define SMB_STATUS_DEVICE_DOES_NOT_EXIST 0xc00000c0
479 #define SMB_STATUS_TOO_MANY_COMMANDS 0xc00000c1
480 #define SMB_STATUS_ADAPTER_HARDWARE_ERROR 0xc00000c2
481 #define SMB_STATUS_INVALID_NETWORK_RESPONSE 0xc00000c3
482 #define SMB_STATUS_UNEXPECTED_NETWORK_ERROR 0xc00000c4
483 #define SMB_STATUS_BAD_REMOTE_ADAPTER 0xc00000c5
484 #define SMB_STATUS_PRINT_QUEUE_FULL 0xc00000c6
485 #define SMB_STATUS_NO_SPOOL_SPACE 0xc00000c7
486 #define SMB_STATUS_PRINT_CANCELLED 0xc00000c8
487 #define SMB_STATUS_NETWORK_NAME_DELETED 0xc00000c9
488 #define SMB_STATUS_NETWORK_ACCESS_DENIED 0xc00000ca
489 #define SMB_STATUS_BAD_DEVICE_TYPE 0xc00000cb
490 #define SMB_STATUS_BAD_NETWORK_NAME 0xc00000cc
491 #define SMB_STATUS_TOO_MANY_NAMES 0xc00000cd
492 #define SMB_STATUS_TOO_MANY_SESSIONS 0xc00000ce
493 #define SMB_STATUS_SHARING_PAUSED 0xc00000cf
494 #define SMB_STATUS_REQUEST_NOT_ACCEPTED 0xc00000d0
495 #define SMB_STATUS_REDIRECTOR_PAUSED 0xc00000d1
496 #define SMB_STATUS_NET_WRITE_FAULT 0xc00000d2
497 #define SMB_STATUS_PROFILING_AT_LIMIT 0xc00000d3
498 #define SMB_STATUS_NOT_SAME_DEVICE 0xc00000d4
499 #define SMB_STATUS_FILE_RENAMED 0xc00000d5
500 #define SMB_STATUS_VIRTUAL_CIRCUIT_CLOSED 0xc00000d6
501 #define SMB_STATUS_NO_SECURITY_ON_OBJECT 0xc00000d7
502 #define SMB_STATUS_CANT_WAIT 0xc00000d8
503 #define SMB_STATUS_PIPE_EMPTY 0xc00000d9
504 #define SMB_STATUS_CANT_ACCESS_DOMAIN_INFO 0xc00000da
505 #define SMB_STATUS_CANT_TERMINATE_SELF 0xc00000db
506 #define SMB_STATUS_INVALID_SERVER_STATE 0xc00000dc
507 #define SMB_STATUS_INVALID_DOMAIN_STATE 0xc00000dd
508 #define SMB_STATUS_INVALID_DOMAIN_ROLE 0xc00000de
509 #define SMB_STATUS_NO_SUCH_DOMAIN 0xc00000df
510 #define SMB_STATUS_DOMAIN_EXISTS 0xc00000e0
511 #define SMB_STATUS_DOMAIN_LIMIT_EXCEEDED 0xc00000e1
512 #define SMB_STATUS_OPLOCK_NOT_GRANTED 0xc00000e2
513 #define SMB_STATUS_INVALID_OPLOCK_PROTOCOL 0xc00000e3
514 #define SMB_STATUS_INTERNAL_DB_CORRUPTION 0xc00000e4
515 #define SMB_STATUS_INTERNAL_ERROR 0xc00000e5
516 #define SMB_STATUS_GENERIC_NOT_MAPPED 0xc00000e6
517 #define SMB_STATUS_BAD_DESCRIPTOR_FORMAT 0xc00000e7
518 #define SMB_STATUS_INVALID_USER_BUFFER 0xc00000e8
519 #define SMB_STATUS_UNEXPECTED_IO_ERROR 0xc00000e9
520 #define SMB_STATUS_UNEXPECTED_MM_CREATE_ERR 0xc00000ea
521 #define SMB_STATUS_UNEXPECTED_MM_MAP_ERROR 0xc00000eb
522 #define SMB_STATUS_UNEXPECTED_MM_EXTEND_ERR 0xc00000ec
523 #define SMB_STATUS_NOT_LOGON_PROCESS 0xc00000ed
524 #define SMB_STATUS_LOGON_SESSION_EXISTS 0xc00000ee
525 #define SMB_STATUS_INVALID_PARAMETER_1 0xc00000ef
526 #define SMB_STATUS_INVALID_PARAMETER_2 0xc00000f0
527 #define SMB_STATUS_INVALID_PARAMETER_3 0xc00000f1
528 #define SMB_STATUS_INVALID_PARAMETER_4 0xc00000f2
529 #define SMB_STATUS_INVALID_PARAMETER_5 0xc00000f3
530 #define SMB_STATUS_INVALID_PARAMETER_6 0xc00000f4
531 #define SMB_STATUS_INVALID_PARAMETER_7 0xc00000f5
532 #define SMB_STATUS_INVALID_PARAMETER_8 0xc00000f6
533 #define SMB_STATUS_INVALID_PARAMETER_9 0xc00000f7
534 #define SMB_STATUS_INVALID_PARAMETER_10 0xc00000f8
535 #define SMB_STATUS_INVALID_PARAMETER_11 0xc00000f9
536 #define SMB_STATUS_INVALID_PARAMETER_12 0xc00000fa
537 #define SMB_STATUS_REDIRECTOR_NOT_STARTED 0xc00000fb
538 #define SMB_STATUS_REDIRECTOR_STARTED 0xc00000fc
539 #define SMB_STATUS_STACK_OVERFLOW 0xc00000fd
540 #define SMB_STATUS_NO_SUCH_PACKAGE 0xc00000fe
541 #define SMB_STATUS_BAD_FUNCTION_TABLE 0xc00000ff
542 #define SMB_STATUS_DIRECTORY_NOT_EMPTY 0xc0000101
543 #define SMB_STATUS_FILE_CORRUPT_ERROR 0xc0000102
544 #define SMB_STATUS_NOT_A_DIRECTORY 0xc0000103
545 #define SMB_STATUS_BAD_LOGON_SESSION_STATE 0xc0000104
546 #define SMB_STATUS_LOGON_SESSION_COLLISION 0xc0000105
547 #define SMB_STATUS_NAME_TOO_LONG 0xc0000106
548 #define SMB_STATUS_FILES_OPEN 0xc0000107
549 #define SMB_STATUS_CONNECTION_IN_USE 0xc0000108
550 #define SMB_STATUS_MESSAGE_NOT_FOUND 0xc0000109
551 #define SMB_STATUS_PROCESS_IS_TERMINATING 0xc000010a
552 #define SMB_STATUS_INVALID_LOGON_TYPE 0xc000010b
553 #define SMB_STATUS_NO_GUID_TRANSLATION 0xc000010c
554 #define SMB_STATUS_CANNOT_IMPERSONATE 0xc000010d
555 #define SMB_STATUS_IMAGE_ALREADY_LOADED 0xc000010e
556 #define SMB_STATUS_ABIOS_NOT_PRESENT 0xc000010f
557 #define SMB_STATUS_ABIOS_LID_NOT_EXIST 0xc0000110
558 #define SMB_STATUS_ABIOS_LID_ALREADY_OWNED 0xc0000111
559 #define SMB_STATUS_ABIOS_NOT_LID_OWNER 0xc0000112
560 #define SMB_STATUS_ABIOS_INVALID_COMMAND 0xc0000113
561 #define SMB_STATUS_ABIOS_INVALID_LID 0xc0000114
562 #define SMB_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE 0xc0000115
563 #define SMB_STATUS_ABIOS_INVALID_SELECTOR 0xc0000116
564 #define SMB_STATUS_NO_LDT 0xc0000117
565 #define SMB_STATUS_INVALID_LDT_SIZE 0xc0000118
566 #define SMB_STATUS_INVALID_LDT_OFFSET 0xc0000119
567 #define SMB_STATUS_INVALID_LDT_DESCRIPTOR 0xc000011a
568 #define SMB_STATUS_INVALID_IMAGE_NE_FORMAT 0xc000011b
569 #define SMB_STATUS_RXACT_INVALID_STATE 0xc000011c
570 #define SMB_STATUS_RXACT_COMMIT_FAILURE 0xc000011d
571 #define SMB_STATUS_MAPPED_FILE_SIZE_ZERO 0xc000011e
572 #define SMB_STATUS_TOO_MANY_OPENED_FILES 0xc000011f
573 #define SMB_STATUS_CANCELLED 0xc0000120
574 #define SMB_STATUS_CANNOT_DELETE 0xc0000121
575 #define SMB_STATUS_INVALID_COMPUTER_NAME 0xc0000122
576 #define SMB_STATUS_FILE_DELETED 0xc0000123
577 #define SMB_STATUS_SPECIAL_ACCOUNT 0xc0000124
578 #define SMB_STATUS_SPECIAL_GROUP 0xc0000125
579 #define SMB_STATUS_SPECIAL_USER 0xc0000126
580 #define SMB_STATUS_MEMBERS_PRIMARY_GROUP 0xc0000127
581 #define SMB_STATUS_FILE_CLOSED 0xc0000128
582 #define SMB_STATUS_TOO_MANY_THREADS 0xc0000129
583 #define SMB_STATUS_THREAD_NOT_IN_PROCESS 0xc000012a
584 #define SMB_STATUS_TOKEN_ALREADY_IN_USE 0xc000012b
585 #define SMB_STATUS_PAGEFILE_QUOTA_EXCEEDED 0xc000012c
586 #define SMB_STATUS_COMMITMENT_LIMIT 0xc000012d
587 #define SMB_STATUS_INVALID_IMAGE_LE_FORMAT 0xc000012e
588 #define SMB_STATUS_INVALID_IMAGE_NOT_MZ 0xc000012f
589 #define SMB_STATUS_INVALID_IMAGE_PROTECT 0xc0000130
590 #define SMB_STATUS_INVALID_IMAGE_WIN_16 0xc0000131
591 #define SMB_STATUS_LOGON_SERVER_CONFLICT 0xc0000132
592 #define SMB_STATUS_TIME_DIFFERENCE_AT_DC 0xc0000133
593 #define SMB_STATUS_SYNCHRONIZATION_REQUIRED 0xc0000134
594 #define SMB_STATUS_DLL_NOT_FOUND 0xc0000135
595 #define SMB_STATUS_OPEN_FAILED 0xc0000136
596 #define SMB_STATUS_IO_PRIVILEGE_FAILED 0xc0000137
597 #define SMB_STATUS_ORDINAL_NOT_FOUND 0xc0000138
598 #define SMB_STATUS_ENTRYPOINT_NOT_FOUND 0xc0000139
599 #define SMB_STATUS_CONTROL_C_EXIT 0xc000013a
600 #define SMB_STATUS_LOCAL_DISCONNECT 0xc000013b
601 #define SMB_STATUS_REMOTE_DISCONNECT 0xc000013c
602 #define SMB_STATUS_REMOTE_RESOURCES 0xc000013d
603 #define SMB_STATUS_LINK_FAILED 0xc000013e
604 #define SMB_STATUS_LINK_TIMEOUT 0xc000013f
605 #define SMB_STATUS_INVALID_CONNECTION 0xc0000140
606 #define SMB_STATUS_INVALID_ADDRESS 0xc0000141
607 #define SMB_STATUS_DLL_INIT_FAILED 0xc0000142
608 #define SMB_STATUS_MISSING_SYSTEMFILE 0xc0000143
609 #define SMB_STATUS_UNHANDLED_EXCEPTION 0xc0000144
610 #define SMB_STATUS_APP_INIT_FAILURE 0xc0000145
611 #define SMB_STATUS_PAGEFILE_CREATE_FAILED 0xc0000146
612 #define SMB_STATUS_NO_PAGEFILE 0xc0000147
613 #define SMB_STATUS_INVALID_LEVEL 0xc0000148
614 #define SMB_STATUS_WRONG_PASSWORD_CORE 0xc0000149
615 #define SMB_STATUS_ILLEGAL_FLOAT_CONTEXT 0xc000014a
616 #define SMB_STATUS_PIPE_BROKEN 0xc000014b
617 #define SMB_STATUS_REGISTRY_CORRUPT 0xc000014c
618 #define SMB_STATUS_REGISTRY_IO_FAILED 0xc000014d
619 #define SMB_STATUS_NO_EVENT_PAIR 0xc000014e
620 #define SMB_STATUS_UNRECOGNIZED_VOLUME 0xc000014f
621 #define SMB_STATUS_SERIAL_NO_DEVICE_INITED 0xc0000150
622 #define SMB_STATUS_NO_SUCH_ALIAS 0xc0000151
623 #define SMB_STATUS_MEMBER_NOT_IN_ALIAS 0xc0000152
624 #define SMB_STATUS_MEMBER_IN_ALIAS 0xc0000153
625 #define SMB_STATUS_ALIAS_EXISTS 0xc0000154
626 #define SMB_STATUS_LOGON_NOT_GRANTED 0xc0000155
627 #define SMB_STATUS_TOO_MANY_SECRETS 0xc0000156
628 #define SMB_STATUS_SECRET_TOO_LONG 0xc0000157
629 #define SMB_STATUS_INTERNAL_DB_ERROR 0xc0000158
630 #define SMB_STATUS_FULLSCREEN_MODE 0xc0000159
631 #define SMB_STATUS_TOO_MANY_CONTEXT_IDS 0xc000015a
632 #define SMB_STATUS_LOGON_TYPE_NOT_GRANTED 0xc000015b
633 #define SMB_STATUS_NOT_REGISTRY_FILE 0xc000015c
634 #define SMB_STATUS_NT_CROSS_ENCRYPTION_REQUIRED 0xc000015d
635 #define SMB_STATUS_DOMAIN_CTRLR_CONFIG_ERROR 0xc000015e
636 #define SMB_STATUS_FT_MISSING_MEMBER 0xc000015f
637 #define SMB_STATUS_ILL_FORMED_SERVICE_ENTRY 0xc0000160
638 #define SMB_STATUS_ILLEGAL_CHARACTER 0xc0000161
639 #define SMB_STATUS_UNMAPPABLE_CHARACTER 0xc0000162
640 #define SMB_STATUS_UNDEFINED_CHARACTER 0xc0000163
641 #define SMB_STATUS_FLOPPY_VOLUME 0xc0000164
642 #define SMB_STATUS_FLOPPY_ID_MARK_NOT_FOUND 0xc0000165
643 #define SMB_STATUS_FLOPPY_WRONG_CYLINDER 0xc0000166
644 #define SMB_STATUS_FLOPPY_UNKNOWN_ERROR 0xc0000167
645 #define SMB_STATUS_FLOPPY_BAD_REGISTERS 0xc0000168
646 #define SMB_STATUS_DISK_RECALIBRATE_FAILED 0xc0000169
647 #define SMB_STATUS_DISK_OPERATION_FAILED 0xc000016a
648 #define SMB_STATUS_DISK_RESET_FAILED 0xc000016b
649 #define SMB_STATUS_SHARED_IRQ_BUSY 0xc000016c
650 #define SMB_STATUS_FT_ORPHANING 0xc000016d
651 #define SMB_STATUS_PARTITION_FAILURE 0xc0000172
652 #define SMB_STATUS_INVALID_BLOCK_LENGTH 0xc0000173
653 #define SMB_STATUS_DEVICE_NOT_PARTITIONED 0xc0000174
654 #define SMB_STATUS_UNABLE_TO_LOCK_MEDIA 0xc0000175
655 #define SMB_STATUS_UNABLE_TO_UNLOAD_MEDIA 0xc0000176
656 #define SMB_STATUS_EOM_OVERFLOW 0xc0000177
657 #define SMB_STATUS_NO_MEDIA 0xc0000178
658 #define SMB_STATUS_NO_SUCH_MEMBER 0xc000017a
659 #define SMB_STATUS_INVALID_MEMBER 0xc000017b
660 #define SMB_STATUS_KEY_DELETED 0xc000017c
661 #define SMB_STATUS_NO_LOG_SPACE 0xc000017d
662 #define SMB_STATUS_TOO_MANY_SIDS 0xc000017e
663 #define SMB_STATUS_LM_CROSS_ENCRYPTION_REQUIRED 0xc000017f
664 #define SMB_STATUS_KEY_HAS_CHILDREN 0xc0000180
665 #define SMB_STATUS_CHILD_MUST_BE_VOLATILE 0xc0000181
666 #define SMB_STATUS_DEVICE_CONFIGURATION_ERROR 0xc0000182
667 #define SMB_STATUS_DRIVER_INTERNAL_ERROR 0xc0000183
668 #define SMB_STATUS_INVALID_DEVICE_STATE 0xc0000184
669 #define SMB_STATUS_IO_DEVICE_ERROR 0xc0000185
670 #define SMB_STATUS_DEVICE_PROTOCOL_ERROR 0xc0000186
671 #define SMB_STATUS_BACKUP_CONTROLLER 0xc0000187
672 #define SMB_STATUS_LOG_FILE_FULL 0xc0000188
673 #define SMB_STATUS_TOO_LATE 0xc0000189
674 #define SMB_STATUS_NO_TRUST_LSA_SECRET 0xc000018a
675 #define SMB_STATUS_NO_TRUST_SAM_ACCOUNT 0xc000018b
676 #define SMB_STATUS_TRUSTED_DOMAIN_FAILURE 0xc000018c
677 #define SMB_STATUS_TRUSTED_RELATIONSHIP_FAILURE 0xc000018d
678 #define SMB_STATUS_EVENTLOG_FILE_CORRUPT 0xc000018e
679 #define SMB_STATUS_EVENTLOG_CANT_START 0xc000018f
680 #define SMB_STATUS_TRUST_FAILURE 0xc0000190
681 #define SMB_STATUS_MUTANT_LIMIT_EXCEEDED 0xc0000191
682 #define SMB_STATUS_NETLOGON_NOT_STARTED 0xc0000192
683 #define SMB_STATUS_ACCOUNT_EXPIRED 0xc0000193
684 #define SMB_STATUS_POSSIBLE_DEADLOCK 0xc0000194
685 #define SMB_STATUS_NETWORK_CREDENTIAL_CONFLICT 0xc0000195
686 #define SMB_STATUS_REMOTE_SESSION_LIMIT 0xc0000196
687 #define SMB_STATUS_EVENTLOG_FILE_CHANGED 0xc0000197
688 #define SMB_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT 0xc0000198
689 #define SMB_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT 0xc0000199
690 #define SMB_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT 0xc000019a
691 #define SMB_STATUS_DOMAIN_TRUST_INCONSISTENT 0xc000019b
692 #define SMB_STATUS_FS_DRIVER_REQUIRED 0xc000019c
693 #define SMB_STATUS_INVALID_LOCK_RANGE 0xc00001a1
694 #define SMB_STATUS_NO_USER_SESSION_KEY 0xc0000202
695 #define SMB_STATUS_USER_SESSION_DELETED 0xc0000203
696 #define SMB_STATUS_RESOURCE_LANG_NOT_FOUND 0xc0000204
697 #define SMB_STATUS_INSUFF_SERVER_RESOURCES 0xc0000205
698 #define SMB_STATUS_INVALID_BUFFER_SIZE 0xc0000206
699 #define SMB_STATUS_INVALID_ADDRESS_COMPONENT 0xc0000207
700 #define SMB_STATUS_INVALID_ADDRESS_WILDCARD 0xc0000208
701 #define SMB_STATUS_TOO_MANY_ADDRESSES 0xc0000209
702 #define SMB_STATUS_ADDRESS_ALREADY_EXISTS 0xc000020a
703 #define SMB_STATUS_ADDRESS_CLOSED 0xc000020b
704 #define SMB_STATUS_CONNECTION_DISCONNECTED 0xc000020c
705 #define SMB_STATUS_CONNECTION_RESET 0xc000020d
706 #define SMB_STATUS_TOO_MANY_NODES 0xc000020e
707 #define SMB_STATUS_TRANSACTION_ABORTED 0xc000020f
708 #define SMB_STATUS_TRANSACTION_TIMED_OUT 0xc0000210
709 #define SMB_STATUS_TRANSACTION_NO_RELEASE 0xc0000211
710 #define SMB_STATUS_TRANSACTION_NO_MATCH 0xc0000212
711 #define SMB_STATUS_TRANSACTION_RESPONDED 0xc0000213
712 #define SMB_STATUS_TRANSACTION_INVALID_ID 0xc0000214
713 #define SMB_STATUS_TRANSACTION_INVALID_TYPE 0xc0000215
714 #define SMB_STATUS_NOT_SERVER_SESSION 0xc0000216
715 #define SMB_STATUS_NOT_CLIENT_SESSION 0xc0000217
716 #define SMB_STATUS_CANNOT_LOAD_REGISTRY_FILE 0xc0000218
717 #define SMB_STATUS_DEBUG_ATTACH_FAILED 0xc0000219
718 #define SMB_STATUS_SYSTEM_PROCESS_TERMINATED 0xc000021a
719 #define SMB_STATUS_DATA_NOT_ACCEPTED 0xc000021b
720 #define SMB_STATUS_NO_BROWSER_SERVERS_FOUND 0xc000021c
721 #define SMB_STATUS_VDM_HARD_ERROR 0xc000021d
722 #define SMB_STATUS_DRIVER_CANCEL_TIMEOUT 0xc000021e
723 #define SMB_STATUS_REPLY_MESSAGE_MISMATCH 0xc000021f
724 #define SMB_STATUS_MAPPED_ALIGNMENT 0xc0000220
725 #define SMB_STATUS_IMAGE_CHECKSUM_MISMATCH 0xc0000221
726 #define SMB_STATUS_LOST_WRITEBEHIND_DATA 0xc0000222
727 #define SMB_STATUS_CLIENT_SERVER_PARAMETERS_INVALID 0xc0000223
728 #define SMB_STATUS_PASSWORD_MUST_CHANGE 0xc0000224
729 #define SMB_STATUS_NOT_FOUND 0xc0000225
730 #define SMB_STATUS_NOT_TINY_STREAM 0xc0000226
731 #define SMB_STATUS_RECOVERY_FAILURE 0xc0000227
732 #define SMB_STATUS_STACK_OVERFLOW_READ 0xc0000228
733 #define SMB_STATUS_FAIL_CHECK 0xc0000229
734 #define SMB_STATUS_DUPLICATE_OBJECTID 0xc000022a
735 #define SMB_STATUS_OBJECTID_EXISTS 0xc000022b
736 #define SMB_STATUS_CONVERT_TO_LARGE 0xc000022c
737 #define SMB_STATUS_RETRY 0xc000022d
738 #define SMB_STATUS_FOUND_OUT_OF_SCOPE 0xc000022e
739 #define SMB_STATUS_ALLOCATE_BUCKET 0xc000022f
740 #define SMB_STATUS_PROPSET_NOT_FOUND 0xc0000230
741 #define SMB_STATUS_MARSHALL_OVERFLOW 0xc0000231
742 #define SMB_STATUS_INVALID_VARIANT 0xc0000232
743 #define SMB_STATUS_DOMAIN_CONTROLLER_NOT_FOUND 0xc0000233
744 #define SMB_STATUS_ACCOUNT_LOCKED_OUT 0xc0000234
745 #define SMB_STATUS_HANDLE_NOT_CLOSABLE 0xc0000235
746 #define SMB_STATUS_CONNECTION_REFUSED 0xc0000236
747 #define SMB_STATUS_GRACEFUL_DISCONNECT 0xc0000237
748 #define SMB_STATUS_ADDRESS_ALREADY_ASSOCIATED 0xc0000238
749 #define SMB_STATUS_ADDRESS_NOT_ASSOCIATED 0xc0000239
750 #define SMB_STATUS_CONNECTION_INVALID 0xc000023a
751 #define SMB_STATUS_CONNECTION_ACTIVE 0xc000023b
752 #define SMB_STATUS_NETWORK_UNREACHABLE 0xc000023c
753 #define SMB_STATUS_HOST_UNREACHABLE 0xc000023d
754 #define SMB_STATUS_PROTOCOL_UNREACHABLE 0xc000023e
755 #define SMB_STATUS_PORT_UNREACHABLE 0xc000023f
756 #define SMB_STATUS_REQUEST_ABORTED 0xc0000240
757 #define SMB_STATUS_CONNECTION_ABORTED 0xc0000241
758 #define SMB_STATUS_BAD_COMPRESSION_BUFFER 0xc0000242
759 #define SMB_STATUS_USER_MAPPED_FILE 0xc0000243
760 #define SMB_STATUS_AUDIT_FAILED 0xc0000244
761 #define SMB_STATUS_TIMER_RESOLUTION_NOT_SET 0xc0000245
762 #define SMB_STATUS_CONNECTION_COUNT_LIMIT 0xc0000246
763 #define SMB_STATUS_LOGIN_TIME_RESTRICTION 0xc0000247
764 #define SMB_STATUS_LOGIN_WKSTA_RESTRICTION 0xc0000248
765 #define SMB_STATUS_IMAGE_MP_UP_MISMATCH 0xc0000249
766 #define SMB_STATUS_INSUFFICIENT_LOGON_INFO 0xc0000250
767 #define SMB_STATUS_BAD_DLL_ENTRYPOINT 0xc0000251
768 #define SMB_STATUS_BAD_SERVICE_ENTRYPOINT 0xc0000252
769 #define SMB_STATUS_LPC_REPLY_LOST 0xc0000253
770 #define SMB_STATUS_IP_ADDRESS_CONFLICT1 0xc0000254
771 #define SMB_STATUS_IP_ADDRESS_CONFLICT2 0xc0000255
772 #define SMB_STATUS_REGISTRY_QUOTA_LIMIT 0xc0000256
773 #define SMB_STATUS_PATH_NOT_COVERED 0xc0000257
774 #define SMB_STATUS_NO_CALLBACK_ACTIVE 0xc0000258
775 #define SMB_STATUS_LICENSE_QUOTA_EXCEEDED 0xc0000259
776 #define SMB_STATUS_PWD_TOO_SHORT 0xc000025a
777 #define SMB_STATUS_PWD_TOO_RECENT 0xc000025b
778 #define SMB_STATUS_PWD_HISTORY_CONFLICT 0xc000025c
779 #define SMB_STATUS_PLUGPLAY_NO_DEVICE 0xc000025e
780 #define SMB_STATUS_UNSUPPORTED_COMPRESSION 0xc000025f
781 #define SMB_STATUS_INVALID_HW_PROFILE 0xc0000260
782 #define SMB_STATUS_INVALID_PLUGPLAY_DEVICE_PATH 0xc0000261
783 #define SMB_STATUS_DRIVER_ORDINAL_NOT_FOUND 0xc0000262
784 #define SMB_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND 0xc0000263
785 #define SMB_STATUS_RESOURCE_NOT_OWNED 0xc0000264
786 #define SMB_STATUS_TOO_MANY_LINKS 0xc0000265
787 #define SMB_STATUS_QUOTA_LIST_INCONSISTENT 0xc0000266
788 #define SMB_STATUS_FILE_IS_OFFLINE 0xc0000267
789 #define SMB_STATUS_DFS_UNAVAILABLE 0xc000026d
790 #define SMB_STATUS_VOLUME_DISMOUNTED 0xC000026e
791 #define SMB_STATUS_NOT_A_REPARSE_POINT 0xc0000275
792 #define SMB_STATUS_IO_REPARSE_TAG_NOT_HANDLED 0xc0000279
793 #define SMB_STATUS_NETWORK_SESSION_EXPIRED 0xC000035C
794 #define SMB_STATUS_INVALID_TOKEN 0xc0000465
795 #define SMB_STATUS_SERVER_UNAVAILABLE 0xC0000466
796 #define SMB_STATUS_FILE_NOT_AVAILABLE 0xc0000467
797 #define SMB_STATUS_SHARE_UNAVAILABLE 0xC0000480
798 #define SMB_STATUS_NO_SUCH_JOB 0xc0000ede
799 #define SMB_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP 0xC05D0000
800 
803 /* Custom (internal) NT statuses */
804 
808 #define SMB_STATUS_DISCONNECT 0xe0000001
809 #define SMB_STATUS_INTERNAL_RELEASE_REQUEST_RESPONSE 0xe0000002
810 #define SMB_STATUS_INTERNAL_BUFFER_TOO_SMALL 0xe0000004
811 #define SMB_STATUS_DONOTRELEASERESPONSE 0xe0000005
812 
815 /*
816  NQ Return codes
817  ---------------
818  */
819 
824 #define NQ_ERR_MODULE (NQ_INT)(255u << 24)
825 #ifndef IS_NQ_ERROR
826 #define IS_NQ_ERROR(err) ((err & NQ_ERR_MODULE) == NQ_ERR_MODULE)
827 #endif
828 /* *** Errors ****/
829 #define NQ_ERR_OK (0)
830 #define NQ_ERR_BADPARAM (NQ_ERR_MODULE | 3)
831 #define NQ_ERR_GETDATA (NQ_ERR_MODULE | 18)
832 #define NQ_ERR_INVALIDMODE (NQ_ERR_MODULE | 19)
833 #define NQ_ERR_NOSERVERMAC (NQ_ERR_MODULE | 20)
834 #define NQ_ERR_SIGNATUREFAIL (NQ_ERR_MODULE | 21)
835 #define NQ_ERR_OBJEXISTS (NQ_ERR_MODULE | 22)
836 #define NQ_ERR_MOUNTERROR (NQ_ERR_MODULE | 23)
837 #define NQ_ERR_UNABLETODISPOSE (NQ_ERR_MODULE | 24)
838 #define NQ_ERR_INVALIDHANDLE (NQ_ERR_MODULE | 25)
839 #define NQ_ERR_NEGOTIATEFAILED (NQ_ERR_MODULE | 26)
840 #define NQ_ERR_PATHNOTCOVERED (NQ_ERR_MODULE | 27)
841 #define NQ_ERR_DFSCACHEOVERFLOW (NQ_ERR_MODULE | 28)
842 #define NQ_ERR_ACCOUNTLOCKEDOUT (NQ_ERR_MODULE | 29)
843 #define NQ_ERR_USEREXISTS (NQ_ERR_MODULE | 30)
844 #define NQ_ERR_USERNOTFOUND (NQ_ERR_MODULE | 31)
845 #define NQ_ERR_NOTFOUND (NQ_ERR_MODULE | 32)
846 #define NQ_ERR_LOGONFAILURE (NQ_ERR_MODULE | 33)
847 #define NQ_ERR_VOLUMEDISMOUNTED (NQ_ERR_MODULE | 34)
848 #define NQ_ERR_NETWORKERROR (NQ_ERR_MODULE | 35)
849 #define NQ_ERR_BADCONNECTION (NQ_ERR_MODULE | 36)
850 #define NQ_ERR_SHARINGPAUSED (NQ_ERR_MODULE | 37)
851 #define NQ_ERR_BADDFS (NQ_ERR_MODULE | 38)
852 #define NQ_ERR_IOTIMEOUT (NQ_ERR_MODULE | 39)
853 #define NQ_ERR_TRYAGAIN (NQ_ERR_MODULE | 40)
854 #define NQ_ERR_ACCOUNTEXPIRED (NQ_ERR_MODULE | 41)
855 #define NQ_ERR_INVALIDLOGONHOURS (NQ_ERR_MODULE | 42)
856 #define NQ_ERR_ACCOUNTDISABLED (NQ_ERR_MODULE | 43)
857 #define NQ_ERR_SESSIONREAUTHREQUIRED (NQ_ERR_MODULE | 44)
858 #define NQ_ERR_USERRELOGONFAILED (NQ_ERR_MODULE | 45)
859 #define NQ_ERR_SERVERUNAVAILABLE (NQ_ERR_MODULE | 46)
860 #define NQ_ERR_SHAREUNAVAILABLE (NQ_ERR_MODULE | 47)
861 #define NQ_ERR_OUTOFMEMORY (NQ_ERR_MODULE | 901)
863 #define NQ_ERR_BADFUNC (NQ_ERR_MODULE | 1001)
864 #define NQ_ERR_BADFILE (NQ_ERR_MODULE | 1002)
865 #define NQ_ERR_BADPATH (NQ_ERR_MODULE | 1003)
866 #define NQ_ERR_NOFIDS (NQ_ERR_MODULE | 1004)
867 #define NQ_ERR_NOACCESS (NQ_ERR_MODULE | 1005)
868 #define NQ_ERR_BADFID (NQ_ERR_MODULE | 1006)
869 #define NQ_ERR_BADMCB (NQ_ERR_MODULE | 1007)
870 #define NQ_ERR_NOMEM (NQ_ERR_MODULE | 1008)
871 #define NQ_ERR_BADMEM (NQ_ERR_MODULE | 1009)
872 #define NQ_ERR_BADENV (NQ_ERR_MODULE | 1010)
873 #define NQ_ERR_BADFORMAT (NQ_ERR_MODULE | 1011)
874 #define NQ_ERR_BADACCESS (NQ_ERR_MODULE | 1012)
875 #define NQ_ERR_BADDATA (NQ_ERR_MODULE | 1013)
876 #define NQ_ERR_BADDRIVE (NQ_ERR_MODULE | 1015)
877 #define NQ_ERR_REMCD (NQ_ERR_MODULE | 1016)
878 #define NQ_ERR_DIFFDEVICE (NQ_ERR_MODULE | 1017)
879 #define NQ_ERR_NOFILES (NQ_ERR_MODULE | 1018)
880 #define NQ_ERR_WRONGDIALECT (NQ_ERR_MODULE | 1019)
881 #define NQ_ERR_BADSHARE (NQ_ERR_MODULE | 1032)
882 #define NQ_ERR_LOCK (NQ_ERR_MODULE | 1033)
883 #define NQ_ERR_DONTSUPPORTIPC (NQ_ERR_MODULE | 1066)
884 #define NQ_ERR_SHARINGVIOLATION (NQ_ERR_MODULE | 1067)
885 #define NQ_ERR_FILEXISTS (NQ_ERR_MODULE | 1080)
886 #define NQ_ERR_BADDIRECTORY (NQ_ERR_MODULE | 1087)
887 #define NQ_ERR_INSUFFICIENTBUFFER (NQ_ERR_MODULE | 1122)
888 #define NQ_ERR_INVALIDNAME (NQ_ERR_MODULE | 1123)
889 #define NQ_ERR_DIRNOTEMPTY (NQ_ERR_MODULE | 1145)
890 #define NQ_ERR_ALREADYEXISTS (NQ_ERR_MODULE | 1183)
891 #define NQ_ERR_BADPIPE (NQ_ERR_MODULE | 1230)
892 #define NQ_ERR_PIPEBUSY (NQ_ERR_MODULE | 1231)
893 #define NQ_ERR_PIPECLOSING (NQ_ERR_MODULE | 1232)
894 #define NQ_ERR_NOTCONNECTED (NQ_ERR_MODULE | 1233)
895 #define NQ_ERR_MOREDATA (NQ_ERR_MODULE | 1234)
896 #define NQ_ERR_INVALIDNAMELEN (NQ_ERR_MODULE | 1235)
898 #define NQ_ERR_ERROR (NQ_ERR_MODULE | 2001)
899 #define NQ_ERR_BADPW (NQ_ERR_MODULE | 2002)
900 #define NQ_ERR_ACCESS (NQ_ERR_MODULE | 2004)
901 #define NQ_ERR_INVTID (NQ_ERR_MODULE | 2005)
902 #define NQ_ERR_INVNETNAME (NQ_ERR_MODULE | 2006)
903 #define NQ_ERR_INVDEVICE (NQ_ERR_MODULE | 2007)
904 #define NQ_ERR_QFULL (NQ_ERR_MODULE | 2049)
905 #define NQ_ERR_QTOOBIG (NQ_ERR_MODULE | 2050)
906 #define NQ_ERR_QEOF (NQ_ERR_MODULE | 2051)
907 #define NQ_ERR_INVFID (NQ_ERR_MODULE | 2052)
908 #define NQ_ERR_SMBCMD (NQ_ERR_MODULE | 2064)
909 #define NQ_ERR_SRVERROR (NQ_ERR_MODULE | 2065)
910 #define NQ_ERR_FILESPECS (NQ_ERR_MODULE | 2067)
911 #define NQ_ERR_BADPERMITS (NQ_ERR_MODULE | 2069)
912 #define NQ_ERR_SETATTRMODE (NQ_ERR_MODULE | 2071)
913 #define NQ_ERR_PAUSED (NQ_ERR_MODULE | 2081)
914 #define NQ_ERR_MSGOFF (NQ_ERR_MODULE | 2082)
915 #define NQ_ERR_NOROOM (NQ_ERR_MODULE | 2083)
916 #define NQ_ERR_RMUNS (NQ_ERR_MODULE | 2087)
917 #define NQ_ERR_TIMEOUT (NQ_ERR_MODULE | 2088)
918 #define NQ_ERR_NORESOURCE (NQ_ERR_MODULE | 2089)
919 #define NQ_ERR_TOOMANYUIDS (NQ_ERR_MODULE | 2090)
920 #define NQ_ERR_INVUID (NQ_ERR_MODULE | 2091)
921 #define NQ_ERR_USEMPX (NQ_ERR_MODULE | 2250)
922 #define NQ_ERR_USESTD (NQ_ERR_MODULE | 2251)
923 #define NQ_ERR_CONTMPX (NQ_ERR_MODULE | 2252)
924 #define NQ_ERR_NOSUPPORT (NQ_ERR_MODULE | 2999)
926 #define NQ_ERR_NOWRITE (NQ_ERR_MODULE | 3019)
927 #define NQ_ERR_BADUNIT (NQ_ERR_MODULE | 3020)
928 #define NQ_ERR_NOTREADY (NQ_ERR_MODULE | 3021)
929 #define NQ_ERR_BADCMD (NQ_ERR_MODULE | 3022)
930 #define NQ_ERR_DATA (NQ_ERR_MODULE | 3023)
931 #define NQ_ERR_BADREQ (NQ_ERR_MODULE | 3024)
932 #define NQ_ERR_SEEK (NQ_ERR_MODULE | 3025)
933 #define NQ_ERR_BADMEDIA (NQ_ERR_MODULE | 3026)
934 #define NQ_ERR_BADSECTOR (NQ_ERR_MODULE | 3027)
935 #define NQ_ERR_NOPAPER (NQ_ERR_MODULE | 3028)
936 #define NQ_ERR_WRITE (NQ_ERR_MODULE | 3029)
937 #define NQ_ERR_READ (NQ_ERR_MODULE | 3030)
938 #define NQ_ERR_GENERAL (NQ_ERR_MODULE | 3031)
939 #define NQ_ERR_WRONGDISK (NQ_ERR_MODULE | 3034)
940 #define NQ_ERR_FCBUNAVAIL (NQ_ERR_MODULE | 3035)
941 #define NQ_ERR_SHAREBUFEXC (NQ_ERR_MODULE | 3036)
942 #define NQ_ERR_DISKFULL (NQ_ERR_MODULE | 3039)
946 /* TCP and NetBIOS layer error codes */
947 
951 #define NQ_ERR_NBILLEGALSOCKETSLOT (NQ_ERR_MODULE | 4000)
952 #define NQ_ERR_NBNOTNETBIOSNAME (NQ_ERR_MODULE | 4001)
953 #define NQ_ERR_NBTIMEOUT (NQ_ERR_MODULE | 4002)
954 #define NQ_ERR_NBNEGATIVERESPONSE (NQ_ERR_MODULE | 4003)
955 #define NQ_ERR_NBHOSTNAMENOTRESOLVED (NQ_ERR_MODULE | 4004)
956 #define NQ_ERR_NBCANCELLISTENFAIL (NQ_ERR_MODULE | 4005)
957 #define NQ_ERR_NBSOCKETOVERFLOW (NQ_ERR_MODULE | 4006)
958 #define NQ_ERR_NBNOBINDBEFORELISTEN (NQ_ERR_MODULE | 4007)
959 #define NQ_ERR_NBILLEGALDATAGRAMSOURCE (NQ_ERR_MODULE | 4008)
960 #define NQ_ERR_NBILLEGALDATAGRAMDESTINATION (NQ_ERR_MODULE | 4009)
961 #define NQ_ERR_NBINVALIDPARAMETER (NQ_ERR_MODULE | 4010)
962 #define NQ_ERR_NBINTERNALERROR (NQ_ERR_MODULE | 4011)
963 #define NQ_ERR_NBILLEGALDATAGRAMTYPE (NQ_ERR_MODULE | 4012)
964 #define NQ_ERR_NBDDCOMMUNICATIONERROR (NQ_ERR_MODULE | 4013)
965 #define NQ_ERR_NBBUFFEROVERFLOW (NQ_ERR_MODULE | 4014)
966 #define NQ_ERR_NBRELEASENAMEFAIL (NQ_ERR_MODULE | 4015)
967 #define NQ_ERR_NBLISTENFAIL (NQ_ERR_MODULE | 4016)
969 #define NQ_ERR_SOCKETCREATE (NQ_ERR_MODULE | 5000)
970 #define NQ_ERR_SOCKETBIND (NQ_ERR_MODULE | 5001)
971 #define NQ_ERR_SOCKETNAME (NQ_ERR_MODULE | 5002)
972 #define NQ_ERR_SOCKETSEND (NQ_ERR_MODULE | 5003)
973 #define NQ_ERR_SOCKETSETOPTION (NQ_ERR_MODULE | 5004)
974 #define NQ_ERR_SOCKETADDRESS (NQ_ERR_MODULE | 5005)
976 #define NQ_ERR_CAPTUREZERO (NQ_ERR_MODULE | 6000)
977 #define NQ_ERR_INVALIDUINT32SIZE (NQ_ERR_MODULE | 6001)
978 #define NQ_ERR_RECONNECTREQUIRED (NQ_ERR_MODULE | 6002)
979 #define NQ_ERR_SIZEERROR (NQ_ERR_MODULE | 6003)
980 #define NQ_ERR_SEEKERROR (NQ_ERR_MODULE | 6004)
981 #define NQ_ERR_ATTRERROR (NQ_ERR_MODULE | 6005)
983 #define NQ_ERR_KERBEROSERROR (NQ_ERR_MODULE | 7000)
985 #define NQ_ERR_RAPGENERALERROR (NQ_ERR_MODULE | 8000)
986 #define NQ_ERR_RAPACCESSDENIED (NQ_ERR_MODULE | 8001)
987 #define NQ_ERR_RAPMOREDATA (NQ_ERR_MODULE | 8002)
988 #define NQ_ERR_RAPSERVERNOTSTARTED (NQ_ERR_MODULE | 8003)
989 #define NQ_ERR_RAPBADTRANSACTCONFIG (NQ_ERR_MODULE | 8004)
990 #define NQ_ERR_RAPSERVICENOTINSTALLED (NQ_ERR_MODULE | 8005)
991 #define NQ_ERR_RAPDEVICENOTCONNECTED (NQ_ERR_MODULE | 8006)
992 #define NQ_ERR_RAPNOTACTIVEINDOMAIN (NQ_ERR_MODULE | 8007)
993 #define NQ_ERR_RAPNOBROWSERSERVERSFOUND (NQ_ERR_MODULE | 8008)
995 #define NQ_ERR_ICONVERROR (NQ_ERR_MODULE | 9000)
996 #define NQ_ERR_ICONVOPEN (NQ_ERR_MODULE | 9001)
998 /* Password Length*/
999 
1000 #define UD_NQ_MAXPWDLEN 257
1004 /* udGetPassword() return codes */
1005 
1014 #define NQ_CS_PWDFOUND 0
1019 #define NQ_CS_PWDNOAUTH 1
1024 #define NQ_CS_PWDNOUSER 2
1029 #define NQ_CS_PWDLMHASH 3
1034 #define NQ_CS_PWDANY 4
1038 /* Initialization */
1039 
1051 NQ_STATUS udInit(void);
1052 
1058 void udStop(void);
1059 
1066 void udResetServerParams(void);
1067 
1068 #if defined(UD_NQ_INCLUDECIFSSERVER) || defined(DOXYGEN)
1069 
1078 void udCifsServerStarted(void);
1079 
1088 void udCifsServerClosed(void);
1089 #endif /* UD_NQ_INCLUDECIFSSERVER */
1090 
1099 void udNetBiosDaemonStarted(void);
1100 
1109 void udNetBiosDaemonClosed(void);
1110 
1116 void udGetScopeID(NQ_WCHAR * buffer);
1117 
1127 void udGetWins(NQ_WCHAR * pServers);
1128 
1137 void udGetDomain(NQ_WCHAR * buffer, NQ_BOOL * isWorkgroup);
1138 
1139 #if defined(UD_NQ_USETRANSPORTIPV4) || defined(UD_NQ_USETRANSPORTIPV6) || defined(DOXYGEN)
1140 
1152 void udGetDnsParams(NQ_WCHAR * domain, NQ_WCHAR * servers);
1153 
1154 #endif /* defined(UD_NQ_USETRANSPORTIPV4) || defined(UD_NQ_USETRANSPORTIPV6) */
1155 
1169 NQ_BOOL udGetCredentials(const void * resource, NQ_WCHAR * userName, NQ_WCHAR * password, NQ_WCHAR * domain);
1170 
1212 NQ_INT udGetPassword(const NQ_WCHAR* userName, NQ_CHAR* password, NQ_INT* pwdIsHashed, NQ_UINT32* userNumber);
1213 
1222 NQ_UINT32
1224  NQ_UINT32 sysErr
1225  );
1226 
1240 
1262 
1270 void udGetServerComment(NQ_WCHAR * buffer);
1271 
1277 void udNetBiosDataIn(void);
1278 
1284 void udServerDataIn(void);
1285 
1293 void udServerShareConnect(const NQ_WCHAR * share);
1294 
1302 void udServerShareDisconnect(const NQ_WCHAR * share);
1303 
1304 #if defined(UD_NQ_INCLUDECODEPAGE) || defined(DOXYGEN)
1305 
1313 NQ_INT udGetCodePage(void);
1314 
1322 void udSetCodePage(NQ_INT codePage);
1323 
1324 #endif /* UD_NQ_INCLUDECODEPAGE */
1325 
1344 NQ_PORT udGetPort(NQ_PORT port);
1345 
1346 #if defined(UD_CS_INCLUDESECURITYDESCRIPTORS) || defined(UD_CC_INCLUDESECURITYDESCRIPTORS) || defined (UD_CC_INCLUDEDOMAINMEMBERSHIP) || defined(UD_CS_INCLUDEPASSTHROUGH) || defined(DOXYGEN)
1347 
1359 void udGetComputerId(NQ_BYTE * buf);
1360 
1361 #if defined(UD_CS_INCLUDELOCALUSERMANAGEMENT) || defined(DOXYGEN)
1362 
1368 NQ_COUNT udGetUserCount(void);
1369 
1381 NQ_BOOL udGetUserRidByName(const NQ_WCHAR * name, NQ_UINT32 * rid);
1382 
1395 NQ_BOOL udGetUserNameByRid(NQ_UINT32 rid, NQ_WCHAR * nameBuffer, NQ_WCHAR * fullNameBuffer);
1396 
1410 NQ_BOOL udGetUserInfo(NQ_UINT index, NQ_UINT32 * rid, NQ_WCHAR * name, NQ_WCHAR * fullName, NQ_WCHAR * description);
1411 
1424 
1452 NQ_BOOL udSetUserInfo(NQ_UINT32 rid, const NQ_WCHAR * name, const NQ_WCHAR* fullName, const NQ_WCHAR* descr, const NQ_WCHAR* password);
1453 
1466 NQ_BOOL udCreateUser(const NQ_WCHAR* name, const NQ_WCHAR* fullName, const NQ_WCHAR* description);
1467 
1476 
1477 #endif /* UD_CS_INCLUDELOCALUSERMANAGEMENT */
1478 
1479 #endif /* defined(UD_CS_INCLUDESECURITYDESCRIPTORS) || defined(UD_CC_INCLUDESECURITYDESCRIPTORS) || defined (UD_CC_INCLUDEDOMAINMEMBERSHIP) || defined(UD_CS_INCLUDEPASSTHROUGH)*/
1480 
1481 #if defined(UD_CS_INCLUDERPC_SRVSVC_EXTENSION) || defined(DOXYGEN)
1482 
1499 NQ_BOOL
1501  const NQ_WCHAR* name,
1502  const NQ_WCHAR* newName,
1503  const NQ_WCHAR* newMap,
1504  const NQ_WCHAR* newDescription
1505  );
1506 
1511 NQ_BOOL
1513  const NQ_WCHAR* name
1514  );
1515 
1516 #endif /* UD_CS_INCLUDERPC_SRVSVC_EXTENSION */
1517 
1518 
1541 void udNetBiosError(NQ_STATUS cause, const NQ_CHAR * name);
1542 
1543 #if defined(UD_CC_INCLUDEDOMAINMEMBERSHIP) || defined(DOXYGEN)
1544 
1568 
1595 NQ_BOOL udGetComputerSecretByDomain(NQ_BYTE *secret, const NQ_WCHAR *domainDNS, NQ_WCHAR *domainNB);
1596 
1608 void udSetComputerSecret(NQ_BYTE * secret);
1609 
1624 void udSetComputerSecretByDomain(const NQ_BYTE *secret, const NQ_WCHAR *domainDNS, const NQ_WCHAR *domainNB);
1625 
1626 #endif /* UD_CC_INCLUDEDOMAINMEMBERSHIP */
1627 
1638 void udGetFileSystemName(const NQ_WCHAR* shareName, const NQ_WCHAR* sharePath, NQ_WCHAR* fileSystemName);
1639 
1642 #ifndef CM_NQ_STORAGE
1643 
1644 
1645 #if defined(UD_NQ_INCLUDEEVENTLOG) || defined(DOXYGEN)
1646 
1647 /*
1648  Event log constants
1649  -------------------
1650  */
1651 
1656 /* event triggering module */
1657 #define UD_LOG_MODULE_CS 1
1658 #define UD_LOG_MODULE_CC 2
1659 /* event class for server */
1660 #define UD_LOG_CLASS_GEN 1
1661 #define UD_LOG_CLASS_FILE 2
1662 #define UD_LOG_CLASS_SHARE 3
1663 #define UD_LOG_CLASS_USER 4
1664 #define UD_LOG_CLASS_CONNECTION 5
1666 /* start/stop evemts */
1667 #define UD_LOG_GEN_START 1
1668 #define UD_LOG_GEN_STOP 2
1669 #define UD_LOG_GEN_NAMECONFLICT 3
1670 #define UD_LOG_GEN_NAMEREGFAIL 4
1672 /* file access events */
1673 #define UD_LOG_FILE_CREATE 1
1674 #define UD_LOG_FILE_OPEN 2
1675 #define UD_LOG_FILE_CLOSE 3
1676 #define UD_LOG_FILE_DELETE 4
1677 #define UD_LOG_FILE_RENAME 5
1678 #define UD_LOG_FILE_ATTRIBGET 6
1679 #define UD_LOG_FILE_ATTRIBSET 7
1680 #define UD_LOG_FILE_SIZESET 8
1681 #define UD_LOG_FILE_VOLUMEINFO 9
1682 #define UD_LOG_FILE_QUERYDIRECTORY 10
1683 #define UD_LOG_FILE_SEEK 11
1684 #define UD_LOG_FILE_LOCK 12
1685 #define UD_LOG_FILE_UNLOCK 13
1687 /* share access events */
1688 #define UD_LOG_SHARE_CONNECT 1
1689 #define UD_LOG_SHARE_DISCONNECT 2
1690 /* user access events*/
1691 #define UD_LOG_USER_LOGON 1
1692 #define UD_LOG_USER_LOGOFF 2
1693 /* connection access events */
1694 #define UD_LOG_CONNECTION_CONNECT 1
1695 #define UD_LOG_CONNECTION_DISCONNECT 2
1699 /*
1700  Event log structures
1701  -------------------
1702  */
1703 
1707 typedef struct {
1736 }
1738 
1742 typedef struct {
1748 }
1750 
1754 typedef struct{
1756 }
1758 
1763 void
1764 udEventLog (
1765  NQ_UINT module,
1766  NQ_UINT eventClass,
1767  NQ_UINT type,
1768  const NQ_WCHAR* userName,
1769  const NQ_IPADDRESS* pIp,
1770  NQ_UINT32 status,
1775  const NQ_BYTE* parameters
1777  );
1778 
1779 #endif /* UD_NQ_INCLUDEEVENTLOG */
1780 
1792 NQ_BYTE*
1794  NQ_INT idx,
1795  NQ_COUNT numBufs,
1796  NQ_UINT bufferSize
1797  );
1798 
1806 void
1808  NQ_INT idx,
1809  NQ_COUNT numBufs,
1810  NQ_BYTE* buffAddr,
1811  NQ_UINT bufferSize
1812  );
1813 
1814 
1815 
1825 NQ_INT
1827  NQ_INT file,
1828  NQ_UINT32 information,
1829  void* buffer
1830  );
1831 
1832 
1843 NQ_STATUS
1845  NQ_INT file,
1846  NQ_UINT32 information,
1847  const void* buffer,
1848  NQ_UINT32 len
1849  );
1850 
1860 NQ_COUNT
1862  const NQ_WCHAR* shareName,
1863  NQ_BYTE* buffer,
1864  NQ_COUNT bufferLen
1865  );
1866 
1874 void
1876  const NQ_WCHAR* shareName,
1877  const NQ_BYTE* sd,
1878  NQ_COUNT sdLen
1879  );
1880 
1891 NQ_BOOL
1893  NQ_WCHAR* name,
1894  NQ_WCHAR* map,
1895  NQ_BOOL* isPrinter,
1896  NQ_WCHAR* description,
1897  NQ_BOOL* isEncrypted
1898  );
1899 
1906 NQ_BOOL
1908  NQ_WCHAR* name,
1909  NQ_WCHAR* map
1910  );
1911 
1920 NQ_BOOL
1922  NQ_INT* policy
1923  );
1924 
1925 
1932 NQ_BOOL
1934  void
1935  );
1936 
1937 
1938 #if defined(UD_NQ_INCLUDESMBCAPTURE) || defined(DOXYGEN)
1939 
1945 NQ_BOOL
1947  void
1948  );
1949 
1956 void
1958  NQ_CHAR* buffer,
1959  NQ_UINT size
1960  );
1961 #endif /* UD_NQ_INCLUDESMBCAPTURE */
1962 
1969 NQ_BOOL
1971  void
1972  );
1973 
1974 #endif /* ifndef CM_NQ_STORAGE */
1975 
1982 NQ_INT
1984  void
1985  );
1986 
1992 void
1994  NQ_CHAR* buffer
1995  );
1996 
2003 void
2005  NQ_CHAR* buffer,
2006  NQ_UINT length
2007  );
2008 
2015 void
2017  NQ_CHAR* buffer,
2018  NQ_UINT size
2019  );
2020 
2026 void
2028  NQ_UINT32 *size
2029  );
2030 
2033 #endif /* _UDAPI_H_ */
2034 
2035 
NQ_COUNT udLoadShareSecurityDescriptor(const NQ_WCHAR *shareName, NQ_BYTE *buffer, NQ_COUNT bufferLen)
NQ_UINT32 sizeHigh
Definition: udapi.h:1732
Definition: udapi.h:1742
void udResetServerParams(void)
NQ_INT id
Definition: udapi.h:58
NQ_UINT NQ_INDEX
Definition: udapi.h:31
NQ_BOOL udGetUserRidByName(const NQ_WCHAR *name, NQ_UINT32 *rid)
NQ_UINT32 sizeLow
Definition: udapi.h:1731
NQ_IPADDRESS4 v4
Definition: udapi.h:63
void udSetComputerSecretByDomain(const NQ_BYTE *secret, const NQ_WCHAR *domainDNS, const NQ_WCHAR *domainNB)
NQ_IOBuf data
Definition: udapi.h:127
long NQ_INT32
Definition: udapi.h:37
NQ_BOOL udGetInternalCapture(void)
NQ_COUNT len
Definition: udapi.h:128
NQ_UINT16 NQ_IPADDRESS6[8]
Definition: udapi.h:50
unsigned int NQ_UINT
Definition: udapi.h:29
NQ_BOOL ipc
Definition: udapi.h:1744
NQ_BOOL udCreateUser(const NQ_WCHAR *name, const NQ_WCHAR *fullName, const NQ_WCHAR *description)
Definition: udapi.h:87
NQ_BOOL udGetMessageSigningPolicy(NQ_INT *policy)
Definition: udapi.h:57
NQ_BOOL udGetInternalTrace(void)
void udServerDataIn(void)
NQ_IOVEC * iovec
Definition: udapi.h:92
void udGetWins(NQ_WCHAR *pServers)
NQ_BOOL before
Definition: udapi.h:1728
NQ_INT udGetTaskPriorities(void)
NQ_COUNT len
Definition: udapi.h:106
#define NQ_IOBuf
Definition: udapi.h:99
Definition: udapi.h:103
void udGetHostName(NQ_CHAR *buffer, NQ_UINT length)
void udNetBiosDaemonClosed(void)
NQ_COUNT udGetUserCount(void)
NQ_IPADDRESS6 v6
Definition: udapi.h:62
void udNetBiosDataIn(void)
void * NQ_HANDLE
Definition: udapi.h:46
NQ_UINT32 rid
Definition: udapi.h:1755
NQ_UINT32 NQ_IPADDRESS4
Definition: udapi.h:49
void udNetBiosError(NQ_STATUS cause, const NQ_CHAR *name)
NQ_UINT32 low
Definition: udapi.h:76
NQ_COUNT iov_len
Definition: udapi.h:89
NQ_BOOL udGetNextShareEx(NQ_WCHAR *name, NQ_WCHAR *map, NQ_BOOL *isPrinter, NQ_WCHAR *description, NQ_BOOL *isEncrypted)
NQ_BOOL udSetUserAsAdministrator(NQ_UINT32 rid, NQ_BOOL isAdmin)
Definition: udapi.h:126
NQ_UINT32 infoLevel
Definition: udapi.h:1735
NQ_BOOL udGetUserNameByRid(NQ_UINT32 rid, NQ_WCHAR *nameBuffer, NQ_WCHAR *fullNameBuffer)
void udGetScopeID(NQ_WCHAR *buffer)
void udServerShareDisconnect(const NQ_WCHAR *share)
NQ_UINT32 offsetHigh
Definition: udapi.h:1734
const NQ_WCHAR * newName
Definition: udapi.h:1709
NQ_BYTE version
Definition: udapi.h:59
void udGetCaptureFileBaseFolder(NQ_CHAR *buffer, NQ_UINT size)
NQ_UINT32 high
Definition: udapi.h:71
void udGetServerComment(NQ_WCHAR *buffer)
NQ_INT udGetCodePage(void)
NQ_UINT16 NQ_PORT
Definition: udapi.h:48
NQ_STATUS udSetSecurityDescriptor(NQ_INT file, NQ_UINT32 information, const void *buffer, NQ_UINT32 len)
NQ_INT udGetPassword(const NQ_WCHAR *userName, NQ_CHAR *password, NQ_INT *pwdIsHashed, NQ_UINT32 *userNumber)
NQ_UINT NQ_COUNT
Definition: udapi.h:32
void udSetCodePage(NQ_INT codePage)
NQ_UINT16 NQ_WCHAR
Definition: udapi.h:45
NQ_BOOL udGetComputerSecret(NQ_BYTE **secret)
NQ_UINT32 low
Definition: udapi.h:70
NQ_UINT32 rid
Definition: udapi.h:1746
void udGetLogFileBaseFolder(NQ_CHAR *buffer, NQ_UINT size)
NQ_BOOL udGetCredentials(const void *resource, NQ_WCHAR *userName, NQ_WCHAR *password, NQ_WCHAR *domain)
NQ_INT32 sign
Definition: udapi.h:78
Definition: udapi.h:1754
unsigned char NQ_BYTE
Definition: udapi.h:27
NQ_UINT32 udNqToSystemError(NQ_STATUS nqErr)
unsigned short NQ_UINT16
Definition: udapi.h:39
NQ_UINT32 udGetSmbError(NQ_UINT32 sysErr)
NQ_IPADDRESS4 v4
Definition: udapi.h:146
void udGetMaxDiskSize(NQ_UINT32 *size)
NQ_BYTE * udAllocateBuffer(NQ_INT idx, NQ_COUNT numBufs, NQ_UINT bufferSize)
NQ_BOOL udSaveShareInformation(const NQ_WCHAR *name, const NQ_WCHAR *newName, const NQ_WCHAR *newMap, const NQ_WCHAR *newDescription)
void udGetDomain(NQ_WCHAR *buffer, NQ_BOOL *isWorkgroup)
void udCifsServerClosed(void)
Definition: udapi.h:138
void udServerShareConnect(const NQ_WCHAR *share)
NQ_UINT32 offsetLow
Definition: udapi.h:1733
void udEventLog(NQ_UINT module, NQ_UINT eventClass, NQ_UINT type, const NQ_WCHAR *userName, const NQ_IPADDRESS *pIp, NQ_UINT32 status, const NQ_BYTE *parameters)
void udStop(void)
void udSaveShareSecurityDescriptor(const NQ_WCHAR *shareName, const NQ_BYTE *sd, NQ_COUNT sdLen)
NQ_UINT32 rid
Definition: udapi.h:1729
Definition: udapi.h:69
void udReleaseBuffer(NQ_INT idx, NQ_COUNT numBufs, NQ_BYTE *buffAddr, NQ_UINT bufferSize)
void udGetFileSystemName(const NQ_WCHAR *shareName, const NQ_WCHAR *sharePath, NQ_WCHAR *fileSystemName)
NQ_PORT udGetPort(NQ_PORT port)
void udCifsServerStarted(void)
int NQ_INT
Definition: udapi.h:28
NQ_COUNT iovSegmentCnt
Definition: udapi.h:93
NQ_BOOL printQueue
Definition: udapi.h:1745
NQ_UINT64 NQ_TIME
Definition: udapi.h:81
NQ_INT udGetTransportPriority(NQ_UINT transport)
NQ_IPADDRESSVR vr
Definition: udapi.h:149
int NQ_BOOL
Definition: udapi.h:30
void udNetBiosDaemonStarted(void)
short NQ_INT16
Definition: udapi.h:33
void udGetComputerId(NQ_BYTE *buf)
NQ_UINT32 access
Definition: udapi.h:1710
float NQ_FLOAT
Definition: udapi.h:52
Definition: udapi.h:75
NQ_UINT32 tid
Definition: udapi.h:1747
NQ_BOOL udGetGlobalEncryption(void)
char NQ_CHAR
Definition: udapi.h:26
unsigned long NQ_UINT32
Definition: udapi.h:43
NQ_INT udGetSecurityDescriptor(NQ_INT file, NQ_UINT32 information, void *buffer)
NQ_BOOL udGetUserInfo(NQ_UINT index, NQ_UINT32 *rid, NQ_WCHAR *name, NQ_WCHAR *fullName, NQ_WCHAR *description)
NQ_UINT32 tid
Definition: udapi.h:1730
void udGetDriverName(NQ_CHAR *buffer)
Definition: udapi.h:91
NQ_BYTE * iov_base
Definition: udapi.h:88
NQ_BOOL udGetComputerSecretByDomain(NQ_BYTE *secret, const NQ_WCHAR *domainDNS, NQ_WCHAR *domainNB)
void udGetDnsParams(NQ_WCHAR *domain, NQ_WCHAR *servers)
NQ_BOOL udSetUserInfo(NQ_UINT32 rid, const NQ_WCHAR *name, const NQ_WCHAR *fullName, const NQ_WCHAR *descr, const NQ_WCHAR *password)
NQ_BOOL udRemoveShare(const NQ_WCHAR *name)
NQ_UINT32 high
Definition: udapi.h:77
unsigned long NQ_ULONG
Definition: udapi.h:51
Definition: udapi.h:1707
const NQ_WCHAR * shareName
Definition: udapi.h:1743
const NQ_WCHAR * fileName
Definition: udapi.h:1708
NQ_IPADDRESS6 v6
Definition: udapi.h:144
NQ_BOOL udDeleteUserByRid(NQ_UINT32 rid)
void udSetComputerSecret(NQ_BYTE *secret)
NQ_BYTE version
Definition: udapi.h:140
NQ_BOOL udGetNextMount(NQ_WCHAR *name, NQ_WCHAR *map)
NQ_STATUS udInit(void)
NQ_INT NQ_STATUS
Definition: udapi.h:47